﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraBars.Docking;

namespace Story.Framework.WinUI
{
    public interface IMainForm
    {
        Dictionary<string, PageBase> Pages
        {
            get;
        }
        Dictionary<string, DockPanelBase> Docks
        {
            get;
        }
        DateTime ServerTime
        {
            get;
        }

        void ShowPage(PageBase p);

        void ShowPage(string typeInfoStr);

        void ShowPage(string typeInfoStr, string paramsStr);

        void ClosePage(PageBase p);

        void ShowDockPage(DockPanelBase d);

        void ShowDockPage(string typeInfoStr);

        void ShowDockPage(string typeInfoStr, string paramsStr);

        void CloseDockPage(DockPanelBase p);

        DialogResult ShowMsg(string text);

        DialogResult ShowMsg(string text, string caption);

        DialogResult ShowMsg(string text, string caption, bool isYesNo);

        DialogResult ShowMsg(string text, string caption, MessageBoxButtons buttons);

        DialogResult ShowMsg(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon);

        DialogResult ShowMsg(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon, MessageBoxDefaultButton defaultButton);

        void OutMsg(string msg);
    }
}
